#include<stdio.h>
#include<stdlib.h>
struct BTNode
{
	int data;
	struct BTNode* left;
	struct BTNode* right;
};
typedef struct BTNode  BTNode;
BTNode* BuyNode(int x)
{
	BTNode* node = (BTNode*)malloc(sizeof(BTNode));
	if (node == NULL)
	{
		perror("malloc fail!");
		return NULL;
	}
	node->data = x;
	node->left = NULL;
	node->right = NULL;
	return node;
}
BTNode* BuyList()
{
	BTNode* node1 = BuyNode(1);
	BTNode* node2 = BuyNode(2);
	BTNode* node3 = BuyNode(4);
	BTNode* node4 = BuyNode(3);
	BTNode* node5 = BuyNode(5);
	BTNode* node6 = BuyNode(6);
	node1->left = node2;
	node1->right = node3;
	node2->left = node4;
	node3->left = node5;
	node3->right = node6;
	return node1;
}
int main()
{
	BTNode* n1 = BuyList();
	return 0;
}